package cn.zjweu.dao;

import cn.zjweu.domain.Dish;
import cn.zjweu.domain.Order;
import cn.zjweu.domain.OrderDetails;

import java.util.List;

public interface OrderDao {
    int saveOrder(Order order);

    boolean saveOrderDetails(int pKey, Dish dish);

    List<Order> findOrderListByUsername(int start, int pageSize, String username);

    int findCountByUsername(String username);

    List<OrderDetails> findOrderDetailsByOrderId(Integer orderId);

    void delOrderByUsername(String username);

    void delOrderDetailByUsername(String username);

    int findCount();

    List<Order> findOrderList(int start, int pageSize);

    boolean changeOrderStatusByOrderId(int orderId, int status);
}
